package org.abacus.client.ui.control.widgets;

import org.abacus.client.ui.access.AbstractAccessData;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.List;
import org.eclipse.swt.widgets.Widget;


public class LList extends AbstractAccessData {
	final List control;

	public LList(Widget parent, int style) {
		this((Composite) parent, style);
	}

	public LList(Composite parent, int style) {
		super();
		this.control = new List(parent, style);
	}

	public Control getControl() {
		return control;
	}

	@Override
	public String getValue() {
		return control.getToolTipText();
	}

	@Override
	public void setValue(String value) {
		if (null != value)
			control.setToolTipText(value);
	}
}
